package cn.dac.service.impl;

import cn.dac.dao.SysPermissionMapper;
import cn.dac.entity.security.SysPermission;
import cn.dac.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private SysPermissionMapper sysPermissionMapper;
    @Override
    public List<SysPermission> findByRoleId(String roleId) {
        return sysPermissionMapper.findByRoleId(roleId);
    }

    @Override
    public List<String> findPermissionUrlByUserName(String userName) {
        return sysPermissionMapper.findPermissionUrlByUserName(userName);
    }
}
